<ui:composition
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	template="/WEB-INF/templates/default.xhtml"
	xmlns:pe="http://primefaces.org/ui"
>

	<f:metadata>
		<f:viewParam
			name="bulletinId"
			value="#{bulletinHome3.id}"
		></f:viewParam>
		<f:event
			listener="#{bulletinHome3.initConversation()}"
			type="preRenderView"
		></f:event>
	</f:metadata>
	<ui:define name="head">
	</ui:define>
	<ui:define name="content">
		<h:form id="editForm">
			<p:panel
				id="panel"
				header="公告基本信息"
				style="margin-bottom:10px;"
			>
				<p:messages id="messages" closable="true">
		       		<p:autoUpdate />
		       	</p:messages>
				<ui:include src="../template/include/bulletinInfo.xhtml" />
			</p:panel>
			 <h:panelGrid columns="2" cellpadding="5">
		        	<p:outputLabel  value="收件人（中介）" style="display:inline-block;width:130px;"></p:outputLabel>
		        	<h:outputText value="#{bulletinHome3.supplierNames}" />
		        	<p:outputLabel for="smsContent"  value="短信内容"></p:outputLabel>
		        	<p:inputTextarea id="smsContent" cols="50" rows="5" required="true" value="#{bulletinHome3.smsContent}"></p:inputTextarea>
		     </h:panelGrid>  	
		     <p:commandButton ajax="false" action="#{bulletinHome3.sendSelfSms()}" value="发送"></p:commandButton>
		</h:form>
	</ui:define>
</ui:composition>
